package com.xt.purchasingsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xt.purchasingsystem.dto.QualityDto;
import com.xt.purchasingsystem.dto.ReleaseCargoDetailsDto;
import com.xt.purchasingsystem.model.Quality;
import com.xt.purchasingsystem.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yhp
 * @since 2020-05-31
 */
public interface QualityService extends IService<Quality> {
    /**
     * 添加质检及其质检详细数据
     * 修改放货登记质检状态的业务
     * @param qualityDto
     * @return
     */
    Result saveQualityAndDetail(QualityDto qualityDto);

    /**
     * 分页查询所有未审核的质检单及其明细的业务
     * @param currNo
     * @param pageSize
     * @return
     */
    Result getAllNoCheckQualityAndDetails(Integer currNo, Integer pageSize);

    /**
     * 审核质检单的业务
     * @param qualityDto
     * @return
     */
    Result checkQuality(QualityDto qualityDto);
}
